//
//  KLScreenSharePlaceholderView.m
//  kularkDemo
//
//  Created by szblsx2 on 2020/4/13.
//  Copyright © 2020 szblsx. All rights reserved.
//

#import "KLScreenSharePlaceholderView.h"

@interface KLScreenSharePlaceholderView ()



@end

@implementation KLScreenSharePlaceholderView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self configSubviews];
    }
    return self;
}

- (void)configSubviews
{
    self.backgroundColor = [UIColor blackColor];
    
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 120, KScreenWidth, 30)];
    titleLabel.font = [UIFont systemFontOfSize:16];
    titleLabel.text = @"您正在共享屏幕";
    titleLabel.textColor = [UIColor whiteColor];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:titleLabel];
    
    UIImageView *icon = [[UIImageView alloc] initWithFrame:CGRectMake((KScreenWidth - 60)/2, 160, 60, 60)];
    icon.image = [UIImage imageNamed:@"screenShare"];
    [self addSubview:icon];
    
    UILabel *contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 230, KScreenWidth, 30)];
    contentLabel.font = [UIFont systemFontOfSize:14];
    contentLabel.text = @"停止共享";
    contentLabel.textColor = [UIColor whiteColor];
    contentLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:contentLabel];
}

@end
